package cn.nextProject.mapper;

import cn.nextProject.entity.Permission;
import cn.nextProject.entity.RoleGroupPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleGroupPermissionMapper {

    /**
     * 查询角色组权限
     * @param roleGroupId
     * @param path
     * @return
     */
    List<RoleGroupPermission> findByRoleGroup(@Param("roleGroupId")Long roleGroupId,
                                              @Param("path")String path);

    void saveBatch(@Param("roleGroupId") Long roleGroupId,@Param("list") List<Long> permissionIdList);

    void deleteRoleGroupPermission(@Param("id")Long id);
}
